<div class="panel panel-default" ng-controller="RtTaskDetailCtrl">
	<div class="panel-heading">
		城际约租 / 司机任务 / 任务编号：{{task.taskNo}}
		<span style="float: right;margin-top: -7px;height: 0px">
			<button type="submit" class="btn m-b-xs w-xs btn-info" ui-sref="{{url}}">返回</button>
		</span>
	</div>
	<div class="row wrapper m-n">
		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">任务详细</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<tbody>
						<tr>
							<td>任务编号：{{task.taskNo}}</td>
							<td>任务类型：{{task.moduleId | moduleFilter}}</td>
							<td>任务创建时间：{{task.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
						</tr>
						<tr>
							<td>任务状态：{{task.status | taskFilter}}</td>
							<td>是否当前任务：
								<span ng-if="task.current==true">是</span>
								<span ng-if="task.current==false">否</span></td>
							<td>分配司机：{{task.driver.name}}</td>
						</tr>
						<tr>
							<td>分配时间：{{task.assignTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
							<td>开始时间：{{task.start | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
							<td>结束时间：{{task.end | date : 'yyyy-MM-dd HH:mm:ss'}}</td>
						</tr>
						<tr>
							<td>始发城市：{{task.startCity}}</td>
							<td>目的城市：{{task.terminalCity}}</td>
							<td>里程：{{task.distance | number:2}}公里</td>
						</tr>
						<tr>
							<td>始发地点：{{task.startStation}}</td>
							<td>目的地点：{{task.terminalStation}}</td>
							<td>乘客总数：{{task.total}}人</td>
						</tr>
						<tr>
							<td>是否晚点：
								<span ng-if="task.delayed==true">是</span>
								<span ng-if="task.delayed==false">否</span>
							</td>
							<td colspan="2">备注：{{task.remark}}</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">司机信息</div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th>司机编号</th>
							<th>司机姓名</th>
							<th>司机手机号</th>
							<th>当前状态</th>
							<th>所属组织</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<td>{{task.driver.code}}</td>
							<td>{{task.driver.name}}</td>
							<td>{{task.driver.phone}}</td>
							<td>{{driver.status | driverFilter }}</td>
							<td>{{task.driver.org.name}}</td>
						</tr>
					</tbody>
				</table>

			</div>
		</div>


		<div class="col-lg-12">
			<div class="panel panel-default">
				<div class="panel-body">乘客信息 <span style="color: red;">&nbsp （点击订单号即可跳转至对应订单）</span></div>
			</div>
			<div class="table-responsive" style="margin-top:-20px">
				<table class="table table-striped b-t b-light">
					<thead>
						<tr>
							<th>订单号</th>
							<th>订单状态</th>
							<th>联系人姓名</th>
							<th>联系人电话</th>
							<th>人数</th>
							<th>上车地点</th>
							<th>下车地点</th>
							<th>是否检票</th>
						</tr>
					</thead>
					<tbody ng-repeat="pas in passengersList">
						<tr>
							<td><a href tooltip="跳转至该订单" ui-sref="app.rent.detail({orderId: pas.order.id,status: pas.order.status})" target="_blank">{{pas.order.orderNo}}</a></td>
							<td>{{pas.order.status | orderFilter}}</td>
							<td>{{pas.order.orderDetail.contactName}}</td>
							<td>{{pas.order.orderDetail.contactPhone}}</td>
							<td>{{pas.order.orderDetail.amount}}人</td>
							<td>{{pas.startStation.location.address}}</td>
							<td>{{pas.terminalStation.location.address}}</td>
							<td>
								<span ng-if="pas.order.orderDetail.checked">已检票</span>
								<span ng-if="!pas.order.orderDetail.checked">未检票</span>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</div>

	</div>
</div>